import java.rmi.Naming;


public class RMIclient
{
	 /**
	   * Client program for the "Hello, world!" example.
	   * @param argv The command line arguments which are ignored.
	   */
	  public static void main (String[] argv)
	  {
	    try 
	    {
	      HelloInterface hello = 
	        (HelloInterface) Naming.lookup ("//localhost:1099/Hello");
	      System.out.println (hello.say());
	      System.out.println(hello.name("bob"));
	    } 
	    catch (Exception e) 
	    {
	      System.out.println ("HelloClient exception: " + e);
	    }
	  }
}
